package com.wangyb.wework.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.wangyb.wework.entity.employee.WwEmployee;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 客户群列表视图对象 ww_groupchat
 *
 * @Author: wangyb
 * @Date: 2021/7/9 11:38 上午
 */
@Data
@ApiModel("客户群列表视图对象")
public class WwGroupchatVo {

	private static final long serialVersionUID = 1L;

	/** $pkColumn.columnComment */
	@ApiModelProperty("$pkColumn.columnComment")
	private Long id;

	/** 客户群ID */
	@Excel(name = "客户群wxChatID")
	@ApiModelProperty("客户群wxChatID")
	private String wxChatId;

	/** 客户群名称 */
	@Excel(name = "客户群名称")
	@ApiModelProperty("客户群名称")
	private String name;

	/** 群主ID（ww_employee.id） */
	private Long ownerId;

	@Excel(name = "群主")
	@ApiModelProperty("群主")
	private WwEmployee owner;

	@Excel(name = "群成员数量")
	@ApiModelProperty("群成员数量")
	private Integer memberNum;

	@Excel(name = "今日入群人数")
	@ApiModelProperty("今日入群人数")
	private Integer joinNumToday;

	@Excel(name = "今日退群人数")
	@ApiModelProperty("今日退群人数")
	private Integer quitNumToday;

	@Excel(name = "群管理员")
	@ApiModelProperty("群管理员")
	private String adminList;

	@Excel(name = "群成员上限")
	@ApiModelProperty("群成员上限")
	private String max;

	/** 群公告 */
	@Excel(name = "群公告")
	@ApiModelProperty("群公告")
	private String notice;

	/** 客户群状态（0 - 正常 1 - 跟进人离职 2 - 离职继承中 3 - 离职继承完成） */
	@Excel(name = "客户群状态" , readConverterExp = "0=,-=,正=常,1=,-=,跟=进人离职,2=,-=,离=职继承中,3=,-=,离=职继承完成")
	@ApiModelProperty("客户群状态（0 - 正常 1 - 跟进人离职 2 - 离职继承中 3 - 离职继承完成）")
	private Integer status;

	/** 群创建时间 */
	@Excel(name = "群创建时间" , width = 30, dateFormat = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty("群创建时间")
	private Date createAt;


}
